import request from '@/utils/request'

// 未读消息数量
export function getmessagecount (query) {
  return request({
    url: '/function/home/page/unread/message/count',
    method: 'get',
    params: query
  })
}
// 未处理数量
export function getuntreatedcount (query) {
  return request({
    url: '/function/home/page/untreated/count',
    method: 'get',
    params: query
  })
}
// 设备状态数量
export function getstatuscount (query) {
  return request({
    url: '/function/home/page/status/count',
    method: 'get',
    params: query
  })
}
// 设备使用状态
export function getuserStatuscount (query) {
  return request({
    url: '/function/home/page/userStatus/count',
    method: 'get',
    params: query
  })
}
// 设备类别数量
export function gettypeNamecount (query) {
  return request({
    url: '/function/home/page/typeName/count',
    method: 'get',
    params: query
  })
}
// 设备使用年限数量
export function getuserYearcount (query) {
  return request({
    url: '/function/home/page/userYear/count',
    method: 'get',
    params: query
  })
}

// 设备计量数量
export function getMeterageFlagcount (query) {
  return request({
    url: '/function/home/page/meterageFlag/count',
    method: 'get',
    params: query
  })
}
// 设备巡检数量
export function getInspectioncount (query) {
  return request({
    url: '/function/home/page/inspection/count',
    method: 'get',
    params: query
  })
}
// 查询巡检任务计划与实际完成数量
export function getinspectionTaskRecordcount (query) {
  return request({
    url: '/function/home/page/inspectionTaskRecord/count',
    method: 'get',
    params: query
  })
}
// 查询某一天巡检任务记录 -- 状态统计
export function getinspectionTasktoDay (query) {
  return request({
    url: '/function/home/page/inspectionTask/toDay',
    method: 'get',
    params: query
  })
}
// 设备维修
export function getrepairRecord (query) {
  return request({
    url: '/function/home/page/repairRecord/count',
    method: 'get',
    params: query
  })
}
// 设备保养状态统计
export function getupkeepRecord (query) {
  return request({
    url: '/function/home/page/upkeepRecord/count',
    method: 'get',
    params: query
  })
}
// 设备保养记录
export function getupkeepRecordlist (query) {
  return request({
    url: '/function/home/page/upkeepRecord/list',
    method: 'get',
    params: query
  })
}
// 设备巡检
export function getinspectionTaskInfo (query) {
  return request({
    url: '/function/home/page/inspectionTaskInfo/list',
    method: 'get',
    params: query
  })
}
// 设备巡检 轨迹路线
export function getinspectionRoutes (query) {
  return request({
    url: '/function/home/page/inspectionRoutes/list',
    method: 'get',
    params: query
  })
}